package comxin.demo1.File;

import java.io.File;
import java.io.IOException;

/**
 * File的构造方法
 */
public class Filedemo {
    public static void main(String[] args) throws IOException {
        File f1 =new File("E://IOdemo");
        //System.out.println(f1.createNewFile());
        System.out.println(f1.mkdir());
        System.out.println(f1);

        File f2=new File ("E://IOdemo","Filedemo");
        System.out.println(f2);

        File f3=new File(f1,"Filedemo_01");
        System.out.println(f3);
    }
}
